package org.example.blog.daos;

import org.example.blog.entities.Favorite;
import org.zoomdev.zoom.common.utils.Page;

public interface FavoriteDAO {
    boolean existsByUserIdAndPostId(Long userId, Long postId);

    void save(Favorite favorite);

    void deleteById(Long favoriteId);

    Page<Favorite> findByUserId(Long userId, int page, int size);
}
